Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

https://www.acmicpc.net/problem/1644

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

연속된 소수의 합으로 N을 나타낼 수 있는 경우의 수 구하기

🔍 풀이 방법

1~N까지 isPrime배열을 생성해서 에라토스테네스의 체를 이용해서 소수여부를 미리 저장해둔다.
이후, 투포인터를 이용해서 더해줄 소수의 범위를 조절해줬다.

⏳ 회고

예외처리를 조금 더 신경써야겠다.

@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Mar 12, 2025
@ShinHeeEul ShinHeeEul merged commit 3297b91 into main Mar 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants